#include "sub_element.h"

#include <list>

using namespace std;

SubElement::SubElement() {
	multiplicity = NULL;
}

SubElement::~SubElement() {
}

void SubElement::addMultiplicity(Multiplicity& aMult) {
	multiplicity = &aMult;
}

void SubElement::addChild(BaseSubElement& aElem) {
	children.push_back(&aElem);
}

void SubElement::addChildFirst(BaseSubElement & aElem) {
	children.push_front(&aElem);
}
